package com.gongyou.forum.controller;

import com.gongyou.common.entity.Result;
import com.gongyou.forum.service.YuePaiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author LiQuanPing
 * @Date 2021-03-21 16:53
 * @Version 1.8
 * @creed: ♂♂Talk is cheap,show me the code♀♀
 */
@RestController
@RequestMapping("/yuePai")
public class YuePaiController {

    @Autowired
    private YuePaiService yuePaiService;

    //获取所有约拍列表信息
    @RequestMapping("/getAllYuePaiInfo")
    public Result getAllYuePaiInfo() {
        List list = yuePaiService.getAllYuePaiInfo();
        return new Result(true, "查询成功", list);
    }

}
